﻿<%@ Page Title=""  Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FrmNuevoGrupo.aspx.cs" Inherits="Tambini.Web.FrmNuevoGrupo" %>


<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>


<asp:Content ID="Content2" ContentPlaceHolderID="id_transfiter" runat="server">
    <script type="text/javascript">
    function soloLetras(e) {
        key = e.keyCode || e.which;
        tecla = String.fromCharCode(key).toLowerCase();
        letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
        especiales = [8, 32, 37, 39, 46];
        tecla_especial = false
        for (var i in especiales) {
            if (key == especiales[i]) {
                tecla_especial = true;
                break;
            }
        }

        if (letras.indexOf(tecla) == -1 && !tecla_especial) {
            return false;
        }
    }
</script>
<div class="main-header" style="width:100%;">

   <div class="main-titulo">Nuevo. Grupo</div>    

</div>

<script type="text/javascript">
    // <![CDATA[

    function ShowCreateAccountWindow7() {
        popupErrores.Show();
    }




    function ShowCreateAccountWindow4() {
        popupRepetido.Show();
    }


    function ShowOK() {
        popupmsj.Show();
    }



    // ]]> 
    </script>






<table>
          <tr>
          <td>
              <dx:ASPxButton ID="btnGrabar" runat="server" Text="Grabar" 
                  CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                  CssPostfix="Office2010Blue" 
                  SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                  onclick="btnGrabar_Click">
              </dx:ASPxButton>
          
          
          </td>
          <td>
          
              <dx:ASPxButton ID="btnLimpiar" runat="server" Text="Limpiar" 
                  CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                  CssPostfix="Office2010Blue" 
                  SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                  onclick="btnLimpiar_Click">
              </dx:ASPxButton>
          
          </td>
          <td>
          
              <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" 
                  CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                  CssPostfix="Office2010Blue" 
                  SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                  onclick="btnSalir_Click">
              </dx:ASPxButton>
          
          </td>
          
          </tr>
          
          </table>


           <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupmsj" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">

                    <br />
                    <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="Panelpopup" runat="server">
                        <table align="center">
                        <tr>
                        <td align="center">
                        Se grabó correctamente !</td>
                        </tr>
                        <tr>
                        <td></td>
                        </tr>
                        <tr>
                        
                        <td align="center">
                        
                            <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	                                    popupmsj.Hide();
                                    }" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                        </dx:PanelContent>
                        </PanelCollection>
                       </dx:ASPxPanel>
                       </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>














                <dx:ASPxPopupControl ID="popupErrores" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupErrores" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table align="center">
                        <tr>
                        <td style="height: 14px">
                        Ingrese todo los campos ! </td>
                        
                        </tr>
                        <tr>
                        <td></td>
                        </tr>
                        <tr>
                        <td align="center">
                        
                            <dx:ASPxButton ID="ASPxButton6" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupErrores.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>















                <dx:ASPxPopupControl ID="popupRepetido" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupRepetido" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel4" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent4" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                            Nombre de grupo ya esta agregado!<br /> </td>
                        
                        </tr>
                        <tr>
                        <td></td>
                        </tr>
                        <tr>
                        <td align="center">
                        
                            <dx:ASPxButton ID="ASPxButton7" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupRepetido.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>
                


                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>

<div class="content-form"> 
           
           





            <div style="width:60%;float:left;">





           <dx:ASPxRoundPanel ID="RPDatosGenerales" runat="server" Width="100%" 
             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
             CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
             GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
             HeaderText="Datos Generales" 
             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
             <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="10px" />
             <HeaderStyle>
             <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="3px" />
             </HeaderStyle>
             <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">

<table width="100%">
<tr>
<td>
Nombre grupo:

</td>
<td>
    <dx:ASPxTextBox ID="txtNombreGrupo" runat="server" onkeypress="return soloLetras(event)" Width="100%" MaxLength="50">

    </dx:ASPxTextBox>

</td>
</tr>
<tr>
<td>
Descripción:

</td>
<td>
    <dx:ASPxTextBox ID="txtDscGrupo" runat="server"  onkeypress="return soloLetras(event)" Width="100%" MaxLength="50">
    </dx:ASPxTextBox>

</td>

</tr>
<tr>
<td>
Estado:

</td>
<td>
 

    <dx:ASPxComboBox ID="cboEstado" runat="server" SelectedIndex="0">
        <Items>
            <dx:ListEditItem Selected="True" Text="Seleccione" />
            <dx:ListEditItem Text="Activo" Value="Activo" />
            <dx:ListEditItem Text="Inactivo" Value="Inactivo" />
        </Items>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
    </dx:ASPxComboBox>

</td>

</tr>


</table>



                 </dx:PanelContent>
</PanelCollection>
         </dx:ASPxRoundPanel>



         </div>


   <div class="formulario-opcion" style="float:left;padding-left:20px;"> 
   


   <table>
   <tr>
   <td>
   
      <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="200px" 
          CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
          CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
          GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
          HeaderText="Accesos del grupo" 
          SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
          <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
              PaddingTop="10px" />
          <HeaderStyle>
          <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
              PaddingTop="3px" />
          </HeaderStyle>
          <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
<div class="listado-tree"> 
 <asp:TreeView ID="tvOpciones" runat="server" ShowCheckBoxes="All">                   
                    </asp:TreeView>


             
                     </div>
</dx:PanelContent>
</PanelCollection>
      </dx:ASPxRoundPanel>
     
  
     </td>
   
   </tr>

   
   </table>




   
   
   
   
   </div>



           
           


 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 </div>




</asp:Content>
